<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="button" value="按钮" onclick="alert('哈哈哈')">
</body>
<script>
    // let a = 10;
    // console.log(typeof(a))
    // a = a / 3
    // console.log(a)
    // console.log(typeof(a))
    // console.log(10 / 0)
    // console.log(-10 / 0)
    // console.log("hahaha" -1)
    // a = "JS"
    // a = "哈哈哈'JS'"
    // alert(a) 

    // let a = "哈哈哈"
    // alert(a.length)
    // a = "world"
    // console.log("Hello world")
    // console.log(10 + 10 + "10" + 10)

    // let day = prompt("请输入今天星期几:")
    // console.log(typeof(day))
    // day = parseInt(day)
    // switch(day){
    //     case 1:
    //         alert("今天星期一")
    //         break;
    // }

    // let result = 0;
    // for(i = 100; i <= 200; i++){
    //     if(i % 3 == 0){
    //         result = i;
    //         break;
    //     }
    // }

    // let array = new Array()
    // console.log(array)

    function hello(){
        console.log("hello")
    }
    // 定义一个有序参数列表，有返回值的一个函数
    function HelloXiaobite(num, name){
        console.log(num + " Hello " + name)
        return 1
    }
    let a = HelloXiaobite(1, "小明")
    console.log(typeof(a))
    console.log(a)

    HelloXiaobite()
    HelloXiaobite(1, "小明", 2)


</script>
</html>